package com.javasm.commons.basic;


import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

public interface BaseDao<T> {
    T queryById(Integer id);
    List<T> queryByIds(@Param("list") Collection ids);
    List<T> queryAll(T obj);

    int insert(T obj);
    int update(T obj);
    int deleteById(Integer id);
    int deleteByIds(List ids);
}
